﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CalcSharp.Core.PackageMan;

namespace pkgman
{
    public partial class pkg_inform : Form
    {
        public pkg_inform(Package inf)
        {
            InitializeComponent();
            if (inf == null) throw new ArgumentException("inf can't be null");
            this.Text = "Package Information:" + inf.name;
            this.lb_name.Text = inf.name;
            this.lb_version.Text = inf.version.ToString();
            this.tb_decript.Text = inf.Description;
            this.tb_license.Text = inf.license;
            this.lb_files.Items.AddRange(inf.files);
        }
    }
}
